package jp.sourceforge.akjrcp.flvtools.dropsomething;

import java.io.File;

import jp.sourceforge.akjrcp.ui.SimpleFileList;

import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.ProgressBar;

public class ProgressAndList extends Composite{
	
	private SimpleFileList fileList;

	public ProgressAndList(Composite parent, int style) {
		super(parent, style);
		this.setLayout(new GridLayout(1,false));
		ProgressBar bar=new ProgressBar(this,SWT.NONE);
		bar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		
		fileList = new SimpleFileList(this,SWT.NULL);
		fileList.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
	}
	public void addFile(String path){
		fileList.addFile(new File(path));
	}
	public SimpleFileList getSimpleFileList(){
		return fileList;
	}
}
